home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / setup / vbnet / 16 windows forms / customizedformsdemo / startupform.vb < prev   
Encoding:
Text File  |  2002-01-16  |  2.8 KB  |  80 lines

  1. Public Class StartupForm
  2.     Inherits System.Windows.Forms.Form
  3.  
  4. #Region " Windows Form Designer generated code "
  5.  
  6.     Public Sub New()
  7.         MyBase.New()
  8.  
  9.         'This call is required by the Windows Form Designer.
  10.         InitializeComponent()
  11.  
  12.         'Add any initialization after the InitializeComponent() call
  13.  
  14.     End Sub
  15.  
  16.     'Form overrides dispose to clean up the component list.
  17.     Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
  18.         If disposing Then
  19.             If Not (components Is Nothing) Then
  20.                 components.Dispose()
  21.             End If
  22.         End If
  23.         MyBase.Dispose(disposing)
  24.     End Sub
  25.     Friend WithEvents Button1 As System.Windows.Forms.Button
  26.     Friend WithEvents Button2 As System.Windows.Forms.Button
  27.  
  28.     'Required by the Windows Form Designer
  29.     Private components As System.ComponentModel.Container
  30.  
  31.     'NOTE: The following procedure is required by the Windows Form Designer
  32.     'It can be modified using the Windows Form Designer.  
  33.     'Do not modify it using the code editor.
  34.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  35.         Me.Button1 = New System.Windows.Forms.Button()
  36.         Me.Button2 = New System.Windows.Forms.Button()
  37.         Me.SuspendLayout()
  38.         '
  39.         'Button1
  40.         '
  41.         Me.Button1.Location = New System.Drawing.Point(24, 24)
  42.         Me.Button1.Name = "Button1"
  43.         Me.Button1.Size = New System.Drawing.Size(160, 40)
  44.         Me.Button1.TabIndex = 0
  45.         Me.Button1.Text = "Localized form"
  46.         '
  47.         'Button2
  48.         '
  49.         Me.Button2.Location = New System.Drawing.Point(24, 88)
  50.         Me.Button2.Name = "Button2"
  51.         Me.Button2.Size = New System.Drawing.Size(160, 40)
  52.         Me.Button2.TabIndex = 0
  53.         Me.Button2.Text = "Dynamic properties"
  54.         '
  55.         'StartupForm
  56.         '
  57.         Me.AutoScaleBaseSize = New System.Drawing.Size(7, 17)
  58.         Me.ClientSize = New System.Drawing.Size(216, 165)
  59.         Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button2, Me.Button1})
  60.         Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 11!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  61.         Me.Name = "StartupForm"
  62.         Me.Text = "StartupForm"
  63.         Me.ResumeLayout(False)
  64.  
  65.     End Sub
  66.  
  67. #End Region
  68.  
  69.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  70.         Dim frm As New LocalizedForm()
  71.         frm.Show()
  72.     End Sub
  73.  
  74.  
  75.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  76.         Dim frm As New DynamicPropertiesForm()
  77.         frm.Show()
  78.     End Sub
  79. End Class
  80.